}
public void find(String xpath) {
for (Node node : (Iterable<Node>) document.selectNodes(xpath)) {
match(node);
}
}
}
public void find(String xpath) {
for (Iterator<Node> i = document.selectNodes(xpath).iterator(); i.hasNext(); ) {
match(i.next());
}
}